export  async function fetch_get(url){

    return (await fetch(url)).json()

}

 export async function fetch_post(url,data){
    
  const res = await fetch(url,{
        method: 'POST',
       
        headers:{
            'Content-Type':'application/json',
        },
        body:JSON.stringify(data)
    });

    return res.json();
    

}